package com.kgc.springboot_shiro.exception;

import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
@ControllerAdvice
public class GlobalException {

    @ExceptionHandler(AuthorizationException.class)
    public String  AuthorizationExceptionHandler(AuthorizationException e){
        e.printStackTrace();
        return "redirect:/403.jsp";
    }

}
